let user = new function() {
    this.name = 'John',
    this.isAdmin = false;
};


function User(name) {
    this.name = name;
    this.isAdmin = false;
};

let user2 = new User("Jack");

alert(user2.name);

alert(user2.isAdmin);